import http from "../utils/http";
export default {
    add(orderId,collectCouont, content, memberIp, pics, productAttribute, productId, productName, readCount, replayCount, showStatus, star) {
        return http.post("/comment/add", { orderId,collectCouont, content, memberIp, pics, productAttribute, productId, productName, readCount, replayCount, showStatus, star})
    },
    addReplay(commentId, content) {
        return http.post("/comment/addReplay", {commentId, content})
    },
    getById(id){
        return http.get("/comment/getById", {id})
    },
    getByProductId(productId,pageNum,pageSize){
        return http.get("/comment/getByProductId", {productId,pageNum,pageSize})
    },
	getByIdAndMenberId(productId){
		return http.get("/comment/getByIdAndMenberId", {'id':productId})
	},
	listByMenberId(pageNum,pageSize){
		 return http.get("/comment/listByMenberId", {pageNum,pageSize})
	}
}